FROM node:22.11-alpine
ENV PROJECT_BASE_DIR /opt/app
ENV NODE_OPTIONS --openssl-legacy-provider
WORKDIR ${PROJECT_BASE_DIR}
COPY package.json ${PROJECT_BASE_DIR}/package.json
RUN ls /opt/app \
  && npm config set strict-ssl false \
  && npm install --registry https://registry.npm.taobao.org
COPY / ${PROJECT_BASE_DIR}/
EXPOSE 9250
ENTRYPOINT ["npm", "start"]
